#include "../includes/mybitmap.h"

int main(int argc, char **argv) {
    mybitmap *b = mybitmap_crate(1024);
    for (int i = 0; i < 10; i++)
    {
        mybitmap_set(b, i);
    }
    for (int i = 0; i < 10; i++)
    {
        printf(" %d ", mybitmap_get(b, i));
    }
    printf("\n");
    printf("bytes: %b, %b\n", b->data[0], b->data[1]);
    mybitmap_clear(b, 3);
    mybitmap_clear(b, 5);
    printf("allocate: %d\n", mybitmap_allocate(b));
    printf("allocate: %d\n", mybitmap_allocate(b));
    printf("allocate: %d\n", mybitmap_allocate(b));
    return 0;
}